package com.github.cyf.upload.enums;

/**
 * @author chenyifan
 * @create 2025-05-22 16:20
 */
public enum SliceUploadStatus {

    FILE_NO_UPLOAD(0, "该文件没有上传过。"),
    FILE_UPLOADED(1, "文件已存在！"),
    FILE_UPLOAD_SOME(2, "该文件上传了一部分。");


    private final int value;

    private final String reasonPhrase;


    SliceUploadStatus(int value, String reasonPhrase) {
        this.value = value;
        this.reasonPhrase = reasonPhrase;
    }

    public int getValue() {
        return value;
    }

    public String getReasonPhrase() {
        return reasonPhrase;
    }
}
